https://leetcode.cn/problems/count-operations-to-obtain-zero/submissions/677003557/

class Solution {
public:
	int countOperations(int num1, int num2) {
		int cnt = 0;
		while(num1 != 0 && num2 != 0){
			if(num1 >= num2){
				num1 -= num2;
				cnt ++;
			}
			else{
				num2 -= num1;
				cnt ++;
			}
		}
		return cnt;
	}
};
